package top.aigoo.project01.entity.dto;

import top.aigoo.project01.entity.LocalAuth;
import top.aigoo.project01.entity.PersonInfo;
import top.aigoo.project01.enums.LocalAuthStateEnum;
import top.aigoo.project01.enums.PersonInfoStateEnum;

import java.util.List;

/**
 * @Description: 登录用户
 * @Author: Mr.OYSHUO.欧阳大叔  mail:1642302522@qq.com
 * @Version 1.0.0
 * @Date: 2021/9/10 22:14
 */
public class LocalAuthExecution {
    //状态
    private int state;
    //结果
    private String stateInfo;
    // 数量
    private int count;

    private LocalAuth localAuth;

    private List<LocalAuth> localAuthList;

    /**
     * 无参构造器
     */
    public LocalAuthExecution() {
    }

    //创建失败使用的构造器
    public LocalAuthExecution(LocalAuthStateEnum localAuthStateEnum) {
        this.state = localAuthStateEnum.getState();
        this.stateInfo = localAuthStateEnum.getStateInfo();
    }

    //执行增、删、改，成功后使用的构造器
    public LocalAuthExecution(LocalAuthStateEnum localAuthStateEnum, LocalAuth localAuth) {
        this.state = localAuthStateEnum.getState();
        this.stateInfo = localAuthStateEnum.getStateInfo();
        this.localAuth = localAuth;
    }

    //执行查找，成功后使用的构造器
    public LocalAuthExecution(LocalAuthStateEnum localAuthStateEnum, List<LocalAuth> localAuthList) {
        this.state = localAuthStateEnum.getState();
        this.stateInfo = localAuthStateEnum.getStateInfo();
        this.localAuthList = localAuthList;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public LocalAuth getLocalAuth() {
        return localAuth;
    }

    public void setLocalAuth(LocalAuth localAuth) {
        this.localAuth = localAuth;
    }

    public List<LocalAuth> getLocalAuthList() {
        return localAuthList;
    }

    public void setLocalAuthList(List<LocalAuth> localAuthList) {
        this.localAuthList = localAuthList;
    }
}
